package com.open.pokergames.texas.repository;


import com.open.pokergames.base.entity.AppPageData;
import com.open.pokergames.base.entity.PageReq;
import com.open.pokergames.comm.repository.entity.ResultInfo;
import com.open.pokergames.comm.repository.entity.UserEntity;
import com.open.pokergames.texas.repository.entity.RoomIM;
import com.open.pokergames.texas.repository.entity.RoomEntity;
import com.open.pokergames.texas.repository.entity.TexasVo;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;

import retrofit2.http.Body;
import retrofit2.http.POST;
import rx.Observable;

public interface TexasApi {

    // 用户 》 用户列表>>
    @POST("user/page")
    Observable<ResultInfo<AppPageData<UserEntity>>> usersPage(@Body PageReq<TexasVo> pageReq);

    // 房间 》 房间列表>>
    @POST("room/page")
    Observable<ResultInfo<AppPageData<RoomEntity>>> roomPage(@Body PageReq<TexasVo> pageReq);

    // 房间 》 房间新增>>
    @POST("room/add")
    Observable<ResultInfo<RoomEntity>> roomAdd(@Body RoomEntity room);
}
